home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGMISC
/
FORTRAN1.LZH
/
CAPS.FOR
< prev
next >
Wrap
Text File
|
1988-02-08
|
2KB
|
82 lines
SUBROUTINE CAPS ( STRING )
C*
C* *******************************
C* *******************************
C* ** **
C* ** CAPS **
C* ** **
C* *******************************
C* *******************************
C*
C* SUBPROGRAM :
C* CAPITALIZE
C*
C* AUTHOR :
C* ART RAGOSTA
C* MS 207-5
C* AMES RESEARCH CENTER
C* MOFFETT FIELD, CA 94035
C* (415) 694-5578
C*
C* PURPOSE :
C* TO REPLACE A STRING WITH THE SAME STRING BUT ONLY CAPITAL
C* LETTERS.
C*
C* INPUT ARGUMENTS :
C* STRING - THE STRING TO BE CAPITALIZED
C*
C* OUTPUT ARGUMENTS :
C* STRING - THE CAPITALIZED STRING
C*
C* INTERNAL WORK AREAS :
C* NONE
C*
C* COMMON BLOCKS :
C* NONE
C*
C* FILE REFERENCES :
C* NONE
C*
C* DATA BASE ACCESS :
C* NONE
C*
C* SUBPROGRAM REFERENCES :
C* NONE
C*
C* ERROR PROCESSING :
C* NONE
C*
C* TRANSPORTABILITY LIMITATIONS :
C* USES AN RTL LIBRARY.
C* A MORE TRANSPORTABLE VERSION IS COMMENTED OUT.
C*
C* ASSUMPTIONS AND RESTRICTIONS :
C* THE COLLATING SEQUENCE MUST HAVE 'Z' > 'A' AND ALL CHARACTERS
C* IN THE UPPER CASE ALPHABET AND LOWER CASE ALPHABET CONTIGUOUS
C*
C* LANGUAGE AND COMPILER :
C* ANSI FORTRAN 77
C*
C* VERSION AND DATE :
C* VERSION I.0 1-OCT-84
C*
C* CHANGE HISTORY :
C* 1-OCT-84 INITIAL VERSION
C*
C***********************************************************************
C*
CHARACTER *(*) STRING
C
C IC = ICHAR('A') - ICHAR('a')
C DO 10 I = 1, LEN(STRING)
C IF ((STRING(I:I) .GE. 'a') .AND. (STRING(I:I) .LE. 'z'))
C $ STRING(I:I) = CHAR( IC + ICHAR(STRING(I:I)) )
C10 CONTINUE
C
ISTAT = STR$UPCASE ( STRING, STRING )
RETURN
END
C
C---END CAPS
C